import { http } from '@/utils/axios/init'

// 查询业务配置列表
export function getBusinessConfigList(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/listByPage`,
    method: 'get',
    params
  })
}
// 新增业务配置列表
export function addBusinessConfig(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/save`,
    method: 'post',
    params
  })
}
// 修改业务配置列表
export function editBusinessConfig(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/update`,
    method: 'post',
    params
  })
}
// 获取业务配置详情
export function getBusinessConfigInfo(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/getById`,
    method: 'get',
    params
  })
}
// 修改业务配置状态
export function updateBusinessStatus(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/updateStatus`,
    method: 'post',
    params
  })
}
// 删除业务配置
export function delBusinessConfig(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/delete`,
    method: 'post',
    params
  })
}
// 复制业务配置
export function copyBusinessConfig(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/copy`,
    method: 'post',
    params
  })
}
// 配置业务配置
export function updateDrugBusinessConfig(params) {
  return http.request({
    url: `/common/Rest/drugBusinessConfig/updateConfig`,
    method: 'post',
    params
  })
}
